home *** CD-ROM | disk | FTP | other *** search
-
-
- File: CUST
- Author: Jeffrey L. Darling
- Date established: 06-07-1991
- Latest release: 06-07-1991
- Current Version: 1.00
- =======================================================================
-
-
-
- CONTENTS
-
- I. Purpose
- II. Brief Description
- III. Version Information
- IV. Authors Contact information
-
-
-
-
-
-
- I. Purpose:
- -----------------------------------------------------------------------
-
- This Turbo Pascal program demonstrates how to use Binary trees
- With the application of files using the Seek procedure.
-
-
- If you REALLY want to understand this implementation, then follow
- the instructions below.
-
- 1. Load CUST.PAS into TURBO PASCAL using INTEGRATED ENVIRONMENT.
-
- 2. Use the "Watch Variable" capabilities on the following variables
- in this format:
-
- Ancestor
- Root
- Ancestor^,R
- Root^,R
- CUST_REC,R
- Cust_File
-
-
- Watch them! keep track of what is happening with each and
- every variable.
-
- 3. Use the "Trace" capabilities! In conjunction with the
- "Watch Variable" option. You will see how it really works.
- Pressing F7 will execute One line at a time.
- (Step Through the program)
-
-
- 4. Change the CUST.DAT file. Put in values of your own. Then
- try to predict what will happen in each and every variable.
- This will force you to think about HOW it works. Think about
- every tiny detail. Be creative, Notice things that are side
- effects and how you can use these side effects in programs that
- YOU write. To do this, just Uncomment the MAKEFILE procedure
-
- {makefile;} {Commented}
-
- makefile; {Uncommented}
-
- Believe me, just try it. I think you will be surprised with
- the results. Especially if you are a novice programmer.
-
-
-
- II. Brief Description:
- -----------------------------------------------------------------------
-
- In this program, each node on the tree contains a integer index to the
- file and an integer number as the account number. In this program
- the records are sorted and displayed in Ascending order on the Account
- number. The data file is not sorted! it remains the same.
-
-
-
-
-
-
- III. Version Information
- -----------------------------------------------------------------------
-
- 1.00 Initial release 06-07-1991
-
- Original implementation of Binary trees with files using the
- seek procedure.
-
-
-
-
- IV. Authors Contact information
- -----------------------------------------------------------------------
-
- If you have any suggestions, questions or comments feel free
- to contact me.
-
- U.S. MAIL: Jeff Darling
- P.O. Box 154
- Barrington Il, 60011
-
- Email: Jeff Darling
- Polysyncronism BBS
- (708) 358-5104
- 24 hours 300/1200/2400 8N1
-
- CompuServe: Jeff Darling 72010,22
-
-
-
-